<template>
	<view>
		<view class="container u-skeleton">
			<view class="item" v-for="(item, index) in 1" :key="index">
				<view class="title">
					<view class="name u-skeleton-fillet">系统提示</view>
					<view class="time u-skeleton-fillet">01-28</view>
				</view>
				<view class="content u-skeleton-fillet">
					欢迎进入安瑞律师APP
				</view>
			</view>
		</view>
		<u-skeleton :loading="loading" el-color="#eee" bg-color="#fff" :animation="true"></u-skeleton>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loading: true, // 是否显示骨架屏组件
			}
		},
		onLoad() {
			setTimeout(() => {
				this.loading = false
			}, 300)
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f8f8f8;
	}
	.container {
		.item {
			background-color: $uni-bg-color;
			height: 190rpx;
			padding: 0 30rpx;
			border-bottom: 1rpx solid #ecedf5;
			display: flex;
			justify-content: center;
			flex-direction: column;
			.title {
				display: flex;
				align-items: center;
				.name {
					font-size: 32rpx;
					color: #1a1a1a;
					font-weight: 800;
				}
				.time {
					font-size: 24rpx;
					line-height: 32rpx;
					color: #999;
					margin-left: auto;
				}
			}
			.content {
				font-size: 26rpx;
				line-height: 40rpx;
				color: #979797;
				margin-top: 10rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
			}
			&:last-child {
				border-bottom: none;
			}
			&:active {
				background-color: #f8f8f8;
			}
		}
		
	}
</style>
